package org.csu.jpetstore_users_backend_pj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import org.csu.jpetstore_users_backend_pj.entity.BannerData;
import org.springframework.stereotype.Repository;

@Repository
public interface BannerDataMapper extends BaseMapper<BannerData> {
    @Select("SELECT BANNERNAME FROM BANNERDATA WHERE FAVCATEGORY=#{favCategory}")
    String getBannerNameByFavCategory(@Param("favCategory") String favCategory);
}
